From de2b8fbd3128cf3f5f68c95d5259499baae35438 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Mon, 13 Nov 2000 15:01:48 +0000 Subject: [PATCH] (face-spec-set-match-display): Revert the change from 2000-10-24. Add a FIXME for after v21.1. --- lisp/faces.el | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/lisp/faces.el b/lisp/faces.el index 6cf55b0e926..a8c9eee5517 100644 --- a/lisp/faces.el +++ b/lisp/faces.el @@ -1146,9 +1146,14 @@ If FRAME is nil, the current FRAME is used." options (cdr conjunct) match (cond ((eq req 'type) (or (memq window-system options) - (if (display-graphic-p frame) - (memq 'graphic options) - (memq 'tty options)) + ;; FIXME: This should be revisited to use + ;; display-graphic-p, provided that the + ;; color selection depends on the number + ;; of supported colors, and all defface's + ;; are changed to look at number of colors + ;; instead of (type graphic) etc. + (and (null window-system) + (memq 'tty options)) (and (memq 'motif options) (featurep 'motif)) (and (memq 'lucid options) -- 2.30.2